#pragma once
#include "table.h"
#include <string>

class TupleSense {
public:

	PGconn* conn;

	vector<Table> all_tables;
	
	vector<string> sense_tables;

	void getAllpossibleTuples(string sensetable_name);

	void computeTupleSenseGroup(Table& temp_table,string groupcol,string aggcol,Table& res_table);

	void computeTupleSense(Table& temp_table, string aggcol, Table& res_table);

	void computeTupleSenseCount(Table& temp_table, Table& res_table);

	void computeTupleSenseMax(Table& temp_table, string groupcol , string aggcol);

};